package com.jgp.sys.query;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/21
 */
public class NumberRange<N extends Number> implements Range<N> {

    private N from;
    private N to;

    public NumberRange(N from, N to) {
        this.from = from;
        this.to = to;
    }

    @Override
    public N getFrom() {
        return this.from;
    }

    @Override
    public N getTo() {
        return this.to;
    }
}
